<!DOCTYPE html>
<html lang="en" class="no-js" >
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>login</title>
<link rel="stylesheet" type="text/css" href="/login/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="/adminlte/bower_components/layer/theme/default/layer.css" />
<link rel="stylesheet" type="text/css" href="/login/css/demo.css" />
<!--必要样式-->
<link rel="stylesheet" type="text/css" href="/login/css/component.css" />
<!--[if IE]>
<script src="/login/js/html5.js"></script>
<![endif]-->
</head>
<body>
		<div class="container demo-1">
			<div class="content">
				<div id="large-header" class="large-header">
					<canvas id="demo-canvas"></canvas>
					<div class="logo_box">
						<h3>商城后台管理系统欢迎你</h3>
						<form id="form1">
							<div class="input_outer">
								<span class="u_user"></span>
								<input name="email" class="text" id="email" style="color: #FFFFFF !important" type="text" placeholder="请输入账户">
							</div>
							<div class="input_outer">
								<span class="us_uer"></span>
								<input name="password" class="text" id="password" style="color: #FFFFFF !important; position:absolute; z-index:100;" value="" type="password" placeholder="请输入密码">
							</div>
							<div class="mb2"><button  class="act-but submit"  style="color: #FFFFFF;width:335px" id="btn_submit" type="button">登录</button></div>
						</form>
					</div>
				</div>
			</div>
		</div><!-- /container -->
		<script src="/login/js/TweenLite.min.js"></script>
		<script src="/login/js/EasePack.min.js"></script>
		<script src="/login/js/rAF.js"></script>
		<script src="/login/js/demo-1.js"></script>
		<script src="/js/jquery-3.4.1.min.js"></script>
		<script src="/adminlte/bower_components/layer/layer.js"></script>
		<div style="text-align:center;">
</div>
<script>
	$("#btn_submit").click(function () {
		$.ajax({
			type:"POST",
			url: "/Admin/login",
			data:$("#form1").serialize(),
			success:function(data) {
				if(data["result"]=="false")
				{
					layer.msg("登陆失败，请检查账号或密码是否正确！");
					setTimeout(function () {
						window.location.href="/page/login";
					},500);

				}
				if(data["result"]=="ok")
				{
					layer.msg("正在登陆……");
					 setTimeout(function () {

					 	window.location.href="/Admin/judge";
					 },1000)

				}
			}
		})
	});


</script>
	</body>
</html>